<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/strict.dtd">
<html><head>
<title>degfx</title>
</head><body>
<p>[<a href="mxdoc.htm">mainpage</a>]
[<a href="tags.htm">tags</a>]<br>
<h1><a name="degfx">library: degfx</a></h1><p><b>A GPL portable graphics library</b><p>
<A HREF="degfx.jpg"><IMG SRC="degfxth.jpg"></A>
<p>
DEGFX is a small extremely portable graphics library.  It has only 6 (!) platform dependant functions. It uses a clean
object oriented C API with reference counting and delete locking for (almost) all the objects.  The library supports transparency for bitmaps and
all drawing functions and antialiased fonts.  The user has very fast pixel level access to bitmaps using
iterators.  DEGFX uses the <a href="deds.htm">DEDS</a> library for data structures.
Compared to other portable graphics libraries DEGFX is:
<UL>
    <LI>Smaller and simpler than Allegro or SDL</LI>
    <LI>Fast alpha-blending (transparency, anti-aliasing) built into all drawing functions</LI>
    <LI>Color conversions are completely hidden to the user</LI>
    <LI>More graphic functions (line, blit) than SDL</LI>
    <LI>More portable than SDL (doesn't need threads)</LI>
    <LI>Guaranteed flicker-free graphics without double buffering the entire display</LI>
    <LI>Library source is completly self-contained - You dont have to link to external libraries, not even to DEGFX!</LI>
    <LI>Easy to determine which modules (drivers, fonts etc...) are included in the executable</LI>
    <li>Portable gui available (<a href="depui.htm">DEPUI</a>)</li>
</UL>
DEGFX uses a different approach than most graphics libraries.
<UL>
    <LI>DEGFX works works internally only a single pixel format chosen at compile time.  This can be argb8888, rgb555 or rgb332 
    color encodings.  This makes the library internally very simple.  Bitmap are only converted to the screen color depth when 
    actually writing to the screen.  This has the advantage
    that the library internals are very simple and allows transparency and alpha-blending to be used even for monochrome, 
    4-bit and 8-bit displays.  Admittedly a program that makes heavy use of antialiasing and transparency might not look very 
    good on a 4-bit display.</LI>
    
    <LI>DEGFX uses a buffer system to guarantee no screen flicker when drawing but uses much less memory than the usual method
    of double buffering the  entire screen.  Only a portion of the screen is buffered at a time and the users
    redraw callback function is called multiple times with different clipping settings.  Because a clipped graphics drawing
    can be made very fast, calling the update function many times is hardly slower than full screen double buffering but uses
    much less memory.  In fact the smaller buffer can often be faster than full screen double buffering because of better 
    cache behavior.  In any case you can change how much memory you want to use for the screen buffer (even during runtime) so 
    you can do do full double buffering if you want to, or use minimal memory and (maybe) have a slightly slower screen update speed.
    </LI>
    
    <LI>DEGFX does not require linking to a library, you include the DEGFX C source code directly into you own programs.
    So installing or removing DEGFX from your system is as simple as moving or deleting a directory from your
    compilers include path.  Using this method can cause long compile times since you are essentially compiling the library
    every time you compile your program.  But if you include DEGFX in a separate object file you can solve this problem.</LI>

    <LI>DEGFX uses #define flags to determine which modules to use.  This guarantees that only the portions of DEGFX that you 
    actually use get included in your executable.</LI>
</UL>
Some Features:
<UL>
<LI>Object oriented C API with attention to maximum type safety. </LI>
<LI>Fast, unified transparency support</LI>
<UL>
    <LI>Plot a solid blue pixel: mx_pixel(x, y, MXRGB(0,0,255));</LI>
    <LI>Same pixel with 50% transparency: mx_pixel(x, y, MXRGBT(0,0,255,128));</LI>
    <LI>RBG and RGBT colors are compile time macro for fast execution</LI>
    <LI>Transparency works for ALL displays even 8 bit and 4 bit graphic modes</LI>
</UL>
<LI>Unified reference counting for many objects</LI>
<LI>Copying to screen is localized by buffer system so banked modes work almost as fast as linear modes</LI>
<LI>Bitmap support:</LI>
<UL>
    <LI>Pixel RGB colors are compile time constants</LI>
    <LI>Color conversions are completely hidden from user</LI>
    <LI>Unified transparency support</LI>
    <LI>Drawing functions: pixel, line, blit, etc...</LI>
    <LI>Drawing functions are simple and fast because only 32 bit ARGB is needed</LI>
    <LI>Very fast pixel-level access using iterators</LI>
    <LI>Functions to load bitmaps from files (PCX, TGA, GIF)</LI>
    <LI>Named colors (derived from X11 rgb.txt)</LI>
    <LI>Reference counting and delete locking</LI>
</UL>
<LI>Font support:</LI><UL>
    <LI>Support for bitmapped fonts and antialiased fonts</LI>
    <LI>UTF-8 encoding</LI>
    <LI>Loadable from bitmap (similar format as Allegro)</LI>
    <LI>Allegro's TTF2PCX utility can be used to make loadable TTF fonts</LI>
    <LI>Reference counting and delete locking</LI>
</UL>

<LI>Simple mouse and keyboard support</LI>
<LI>DEGFX source compiles inside your own source code
    <UL>
    <LI>Installing/removing the library means simply copying/deleting a directory in your compilers include path</LI>
    <LI>No need to use library tools</LI>
    </UL></LI>
<LI>Currently available drivers:</LI>
<UL>
    <LI>DOS   - DJGPP VESA 2.0(linear) and VESA 1.2(banked)</LI>
    <LI>DOS   - DJGPP standard VGA (640x480x4)</LI>
    <LI>DOS   - DJGPP VGA mode 13h (320x200x8)</LI>
    <li>DOS   - Borland Turbo C++ 3.1 using BGI graphics</li>
    <LI>Linux - Svgalib *** has problems on some displays because <code>vga_setrgbcolor()</code>
    does not always function properly. ***</LI>
    <LI>Win32 - MINGW32 using GDI</LI>
    <LI>Win32 - Borlands free compiler BCC32 using GDI</LI>
    <LI>Win32 - Open Watcom target Win32 (GDI)</LI>
    <LI>Sinclair QL - QDOS *** in development ***</LI>
</UL>
<LI>Low memory requirements when using 'partial' double buffer</LI>
<LI>Buffering mode can be changed on the fly</LI>
<LI>Extremely portable: only 6 (!) platform dependant functions</LI>
<UL>
    <LI>start, stop, poll, dirty, keypress, mouse info</LI>
</UL>
<LI>Runs on almost any hardware, even my 40 MHz 386 test machine</LI>
<LI>Compiles with no changes on MSB first or LSB first hardware</LI>
<LI>Open source and GPL licence</LI>
</UL>
 
(<a href="../include/degfx/degfx.h">../include/degfx/degfx.h</a>)<h2>modules:</h2><ul><li><a href="
degfx_bitmap.htm">bitmap</a> 
Bitmap functions</li>
<li><a href="
degfx_colors.htm">colors</a> 
</li>
<li><a href="
degfx_coregfx.htm">coregfx</a> 
The core DEGFX module</li>
<li><a href="
degfx_driver.htm">driver</a> 
</li>
<li><a href="
degfx_font.htm">font</a> 
Font functions</li>
</ul><h2>documented objects:</h2><ul><li><a href="degfx_bitmap.htm#MX_BITMAP">MX_BITMAP</a>
A bitmap type  </li>
<li><a href="degfx_bitmap.htm#MX_BITMAP* mx_bitmap(int x2, int y2)">MX_BITMAP* mx_bitmap(int x2, int y2)</a>
Create a bitmap  </li>
<li><a href="degfx_bitmap.htm#MX_BITMAP* mx_bitmap_tga(const char* filename)">MX_BITMAP* mx_bitmap_tga(const char* filename)</a>
Load a bitmap from a TGA file  </li>
<li><a href="degfx_bitmap.htm#MX_BITMAP* mx_bitmap_gif(const char* filename)">MX_BITMAP* mx_bitmap_gif(const char* filename)</a>
Load a bitmap from a GIF file  </li>
<li><a href="degfx_bitmap.htm#MX_BITMAP* mx_bitmap_pcx(const char* filename)">MX_BITMAP* mx_bitmap_pcx(const char* filename)</a>
Load a bitmap from a PCX file  </li>
<li><a href="degfx_bitmap.htm#MX_BITMAP* mx_bitmap_pcx_greyscale(const char* filename)">MX_BITMAP* mx_bitmap_pcx_greyscale(const char* filename)</a>
Load a bitmap from a PCX file and convert it to greyscale  </li>
<li><a href="degfx_bitmap.htm#MX_BITMAP* mx_bitmap_clone(const MX_BITMAP* other)">MX_BITMAP* mx_bitmap_clone(const MX_BITMAP* other)</a>
Make a complete copy of a bitmap  </li>
<li><a href="degfx_bitmap.htm#unsigned mx_bitmap_clip(MX_BITMAP* bitmap, const MX_RECT* newclip)">unsigned mx_bitmap_clip(MX_BITMAP* bitmap, const MX_RECT* newclip)</a>
Set a bitmaps clipping area   </li>
<li><a href="degfx_bitmap.htm#const MX_RECT* mx_bitmap_clip_get(const MX_BITMAP* bitmap)">const MX_RECT* mx_bitmap_clip_get(const MX_BITMAP* bitmap)</a>
Return a bitmaps clipping area  </li>
<li><a href="degfx_bitmap.htm#void mx_bitmap_offset(MX_BITMAP* bitmap, int x1, int y1)">void mx_bitmap_offset(MX_BITMAP* bitmap, int x1, int y1)</a>
Offset a bitmap</li>
<li><a href="degfx_bitmap.htm#typedef MX_PIXEL* MX_BITMAP_ITER;">typedef MX_PIXEL* MX_BITMAP_ITER;</a>
Fast pixel-level iterator for a bitmap  </li>
<li><a href="degfx_bitmap.htm#MX_BITMAP_ITER mx_bitmap_iter(const MX_BITMAP* bitmap, int x1, int y1)">MX_BITMAP_ITER mx_bitmap_iter(const MX_BITMAP* bitmap, int x1, int y1)</a>
Return pixel-level iterator at a given position  </li>
<li><a href="degfx_bitmap.htm#MX_BITMAP_ITER mx_bitmap_begin(const MX_BITMAP* bitmap)">MX_BITMAP_ITER mx_bitmap_begin(const MX_BITMAP* bitmap)</a>
Return pixel-level iterator at the top left position  </li>
<li><a href="degfx_bitmap.htm#MX_BITMAP_ITER mx_bitmap_end(const MX_BITMAP* bitmap)">MX_BITMAP_ITER mx_bitmap_end(const MX_BITMAP* bitmap)</a>
Return pixel-level iterator at the lower right position  </li>
<li><a href="degfx_bitmap.htm#MX_PIXEL mx_bitmap_getpixel(const MX_BITMAP* bitmap, int x1, int y1)">MX_PIXEL mx_bitmap_getpixel(const MX_BITMAP* bitmap, int x1, int y1)</a>
Return pixel a a given position  </li>
<li><a href="degfx_bitmap.htm#void mx_bitmap_pixel(MX_BITMAP* bitmap, int x1, int y1, MX_PIXEL color)">void mx_bitmap_pixel(MX_BITMAP* bitmap, int x1, int y1, MX_PIXEL color)</a>
Draw a pixel on a bitmap  </li>
<li><a href="degfx_bitmap.htm#void mx_bitmap_vline(MX_BITMAP* bitmap, int x1, int y1, int y2, MX_PIXEL color)">void mx_bitmap_vline(MX_BITMAP* bitmap, int x1, int y1, int y2, MX_PIXEL color)</a>
Draw a vertical line on a bitmap  </li>
<li><a href="degfx_bitmap.htm#void mx_bitmap_hline(MX_BITMAP* bitmap, int x1, int y1, int x2, MX_PIXEL color)">void mx_bitmap_hline(MX_BITMAP* bitmap, int x1, int y1, int x2, MX_PIXEL color)</a>
Draw a horizontal line on a bitmap  </li>
<li><a href="degfx_bitmap.htm#void mx_bitmap_line(MX_BITMAP* bitmap, int x1, int y1, int x2, int y2, MX_PIXEL color)">void mx_bitmap_line(MX_BITMAP* bitmap, int x1, int y1, int x2, int y2, MX_PIXEL color)</a>
Draw a line on a bitmap  </li>
<li><a href="degfx_bitmap.htm#void mx_bitmap_rectfill(MX_BITMAP* bitmap, int x1, int y1, int x2, int y2, MX_PIXEL color)">void mx_bitmap_rectfill(MX_BITMAP* bitmap, int x1, int y1, int x2, int y2, MX_PIXEL color)</a>
Draw a filled rectangle on a bitmap  </li>
<li><a href="degfx_bitmap.htm#void mx_bitmap_clear(MX_BITMAP* bitmap, MX_PIXEL color)">void mx_bitmap_clear(MX_BITMAP* bitmap, MX_PIXEL color)</a>
Clear a bitmap to a solid color  </li>
<li><a href="degfx_bitmap.htm#void mx_bitmap_blit(const MX_BITMAP* src, MX_BITMAP* dest, int sx, int sy, int dx, int dy, int w, int h)">void mx_bitmap_blit(const MX_BITMAP* src, MX_BITMAP* dest, int sx, int sy, int dx, int dy, int w, int h)</a>
Blit a bitmap onto another bitmap</li>
<li><a href="degfx_bitmap.htm#void mx_bitmap_blitcopy(const MX_BITMAP* src, MX_BITMAP* dest, int sx, int sy, int dx, int dy, int w, int h)">void mx_bitmap_blitcopy(const MX_BITMAP* src, MX_BITMAP* dest, int sx, int sy, int dx, int dy, int w, int h)</a>
Blit a bitmap onto another bitmap</li>
<li><a href="degfx_bitmap.htm#void mx_bitmap_blittrans(const MX_BITMAP* src, MX_BITMAP* dest, int sx, int sy, int dx, int dy, int w, int h, unsigned long trans)">void mx_bitmap_blittrans(const MX_BITMAP* src, MX_BITMAP* dest, int sx, int sy, int dx, int dy, int w, int h, unsigned long trans)</a>
Blit a bitmap onto another bitmap</li>
<li><a href="degfx_bitmap.htm#void mx_bitmap_blitstretch(const MX_BITMAP* src, MX_BITMAP* dest, int sx, int sy, int sw, int sh, int dx, int dy, int dw, int dh)">void mx_bitmap_blitstretch(const MX_BITMAP* src, MX_BITMAP* dest, int sx, int sy, int sw, int sh, int dx, int dy, int dw, int dh)</a>
Stretch-blit a bitmap onto another bitmap</li>
<li><a href="degfx_bitmap.htm#void mx_bitmap_box(MX_BITMAP* bitmap, int x1, int y1, int x2, int y2, int width, MX_PIXEL light, MX_PIXEL dark)">void mx_bitmap_box(MX_BITMAP* bitmap, int x1, int y1, int x2, int y2, int width, MX_PIXEL light, MX_PIXEL dark)</a>
Draw a box on a bitmap  </li>
<li><a href="degfx_bitmap.htm#void mx_bitmap_frame(MX_BITMAP* bitmap, int x1, int y1, int x2, int y2, int width, MX_PIXEL light, MX_PIXEL dark, MX_PIXEL fill)">void mx_bitmap_frame(MX_BITMAP* bitmap, int x1, int y1, int x2, int y2, int width, MX_PIXEL light, MX_PIXEL dark, MX_PIXEL fill)</a>
Draw a frame on a bitmap  </li>
<li><a href="degfx_bitmap.htm#void mx_bitmap_decorate(const MX_BITMAP* src, MX_BITMAP* dest, int x, int y, int x1, int y1, int x2, int y2)">void mx_bitmap_decorate(const MX_BITMAP* src, MX_BITMAP* dest, int x, int y, int x1, int y1, int x2, int y2)</a>
Blitting function for drawing gui objects  </li>
<li><a href="degfx_bitmap.htm#unsigned mx_bitmap_collision(const MX_BITMAP* src, const MX_BITMAP* dest, int sx, int sy, int dx, int dy, unsigned int thresh)">unsigned mx_bitmap_collision(const MX_BITMAP* src, const MX_BITMAP* dest, int sx, int sy, int dx, int dy, unsigned int thresh)</a>
Check if two bitmaps overlap on any pixels</li>
<li><a href="degfx_bitmap.htm#define mx_iter(x,y)">#define mx_iter(x,y)</a>
Get an iterator to a given position on the screen  </li>
<li><a href="degfx_bitmap.htm#define mx_getpixel(x,y)">#define mx_getpixel(x,y)</a>
Return the pixel at a given position on the screen  </li>
<li><a href="degfx_bitmap.htm#define mx_pixel(x,y,c)">#define mx_pixel(x,y,c)</a>
Draw a pixel on the screen  </li>
<li><a href="degfx_bitmap.htm#define mx_vline(x,y1,y2,c)">#define mx_vline(x,y1,y2,c)</a>
Draw a vertical line on the screen  </li>
<li><a href="degfx_bitmap.htm#define mx_hline(x1,y,x2,c)">#define mx_hline(x1,y,x2,c)</a>
Draw a horizontal line on the screen  </li>
<li><a href="degfx_bitmap.htm#define mx_line(x1,y1,x2,y2,c)">#define mx_line(x1,y1,x2,y2,c)</a>
Draw a line on the screen  </li>
<li><a href="degfx_bitmap.htm#define mx_rectfill(x1,y1,x2,y2,c)">#define mx_rectfill(x1,y1,x2,y2,c)</a>
Draw a filled rectangle on the screen  </li>
<li><a href="degfx_bitmap.htm#define mx_clear(c)">#define mx_clear(c)</a>
Clear the screen to a solid color  </li>
<li><a href="degfx_bitmap.htm#define mx_blit(s,sx,sy,dx,dy,w,h)">#define mx_blit(s,sx,sy,dx,dy,w,h)</a>
Blit a bitmap onto the screen</li>
<li><a href="degfx_bitmap.htm#define mx_blitcopy(s,sx,sy,dx,dy,w,h)">#define mx_blitcopy(s,sx,sy,dx,dy,w,h)</a>
Blit a bitmap onto the screen</li>
<li><a href="degfx_bitmap.htm#define mx_blittrans(s,sx,sy,dx,dy,w,h,t)">#define mx_blittrans(s,sx,sy,dx,dy,w,h,t)</a>
Blit a bitmap onto the screen</li>
<li><a href="degfx_bitmap.htm#define mx_blitstretch(s,sx,sy,sw,sh,dx,dy,dw,dh)">#define mx_blitstretch(s,sx,sy,sw,sh,dx,dy,dw,dh)</a>
Stretch-blit a bitmap onto the screen</li>
<li><a href="degfx_bitmap.htm#define mx_box(x1,y1,x2,y2,w,l,d)">#define mx_box(x1,y1,x2,y2,w,l,d)</a>
Draw a box on the screen  </li>
<li><a href="degfx_bitmap.htm#define mx_frame(x1,y1,x2,y2,w,l,d,f)">#define mx_frame(x1,y1,x2,y2,w,l,d,f)</a>
Draw a frame on the screen  </li>
<li><a href="degfx_bitmap.htm#define mx_decorate(s,x,y,x1,y1,x2,y2)">#define mx_decorate(s,x,y,x1,y1,x2,y2)</a>
Blitting function for drawing gui objects on the screen  </li>
<li><a href="degfx_bitmap.htm#bitmap.h" unsigned mx_bitmap_collision(const MX_BITMAP* src, const MX_BITMAP* dest, int sx, int sy, int dx, int dy, unsigned int thresh)">bitmap.h" unsigned mx_bitmap_collision(const MX_BITMAP* src, const MX_BITMAP* dest, int sx, int sy, int dx, int dy, unsigned int thresh)</a>
</li>
<li><a href="degfx_bitmap.htm#bitmap.h" void mx_bitmap_decorate(const MX_BITMAP* src, MX_BITMAP* dest, int x, int y, int x1, int y1, int x2, int y2)">bitmap.h" void mx_bitmap_decorate(const MX_BITMAP* src, MX_BITMAP* dest, int x, int y, int x1, int y1, int x2, int y2)</a>
</li>
<li><a href="degfx_bitmap.htm#bitmap.h" MX_BITMAP_ITER mx_bitmap_iter(const MX_BITMAP* bitmap, int x1, int y1)">bitmap.h" MX_BITMAP_ITER mx_bitmap_iter(const MX_BITMAP* bitmap, int x1, int y1)</a>
</li>
<li><a href="degfx_colors.htm#define MXRGB(r, g, b)">#define MXRGB(r, g, b)</a>
Construct a pixel out of a r, g, b  </li>
<li><a href="degfx_colors.htm#define MXRGBT(r, g, b, a)">#define MXRGBT(r, g, b, a)</a>
Construct a pixel out of a r, g, b and transparency  </li>
<li><a href="degfx_colors.htm#define MXT(c)">#define MXT(c)</a>
The transparency of a pixel  </li>
<li><a href="degfx_colors.htm#define MXR(c)">#define MXR(c)</a>
Red component of a pixel  </li>
<li><a href="degfx_colors.htm#define MXG(c)">#define MXG(c)</a>
Green component of a pixel  </li>
<li><a href="degfx_colors.htm#define MXB(c)">#define MXB(c)</a>
Blue component of a pixel  </li>
<li><a href="degfx_colors.htm#define MXTRANS(c, a)">#define MXTRANS(c, a)</a>
Set pixel transparency  </li>
<li><a href="degfx_colors.htm#define MXBLENDT(c1, c2, a1)">#define MXBLENDT(c1, c2, a1)</a>
Blend two pixels with transparency  </li>
<li><a href="degfx_colors.htm#define MXBLEND(c1, c2)">#define MXBLEND(c1, c2)</a>
Blend two pixels using the transparency component of the first pixel.  </li>
<li><a href="degfx_colors.htm#define MXCOLOR_alice">#define MXCOLOR_alice</a>
Macros for named colors</li>
<li><a href="degfx_coregfx.htm# define MXSCREEN"># define MXSCREEN</a>
Screen bitmap</li>
<li><a href="degfx_coregfx.htm#void mx_font_default(MX_FONT* font)">void mx_font_default(MX_FONT* font)</a>
</li>
<li><a href="degfx_coregfx.htm#unsigned mx_gfx_start(MX_GFX_ARGS* userargs)">unsigned mx_gfx_start(MX_GFX_ARGS* userargs)</a>
Start DEGFX and set the graphics mode  </li>
<li><a href="degfx_coregfx.htm#void mx_gfx_stop(void)">void mx_gfx_stop(void)</a>
Stop DEGFX</li>
<li><a href="degfx_coregfx.htm#const MX_GFX_ARGS* mx_gfx_info(void)">const MX_GFX_ARGS* mx_gfx_info(void)</a>
</li>
<li><a href="degfx_coregfx.htm#void mx_gfx_redraw(MX_REDRAW_FUNC redraw)">void mx_gfx_redraw(MX_REDRAW_FUNC redraw)</a>
</li>
<li><a href="degfx_coregfx.htm#void mx_gfx_dirty(const MX_RECT* rect)">void mx_gfx_dirty(const MX_RECT* rect)</a>
Mark part of the screen as dirty </li>
<li><a href="degfx_coregfx.htm#unsigned mx_gfx_poll(void)">unsigned mx_gfx_poll(void)</a>
Poll the DEGFX grpahics/keyboard/mouse system</li>
<li><a href="degfx_coregfx.htm#unsigned mx_gfx_pointer(int* x, int* y, int* b)">unsigned mx_gfx_pointer(int* x, int* y, int* b)</a>
Get the mouse position and state</li>
<li><a href="degfx_coregfx.htm#unsigned mx_gfx_hidepointer(unsigned hide)">unsigned mx_gfx_hidepointer(unsigned hide)</a>
Hide the pointer</li>
<li><a href="degfx_coregfx.htm#unsigned mx_gfx_key(int* scan, int* ascii)">unsigned mx_gfx_key(int* scan, int* ascii)</a>
Return keypress information </li>
<li><a href="degfx_driver.htm#MX_GFX_ARGS">MX_GFX_ARGS</a>
Graphic driver information</li>
<li><a href="degfx_driver.htm#define mx_driver_fullscreen">#define mx_driver_fullscreen</a>
</li>
<li><a href="degfx_driver.htm#define mx_driver_windowed">#define mx_driver_windowed</a>
</li>
<li><a href="degfx_driver.htm#define mx_driver_vga">#define mx_driver_vga</a>
</li>
<li><a href="degfx_driver.htm#define mx_driver_13h">#define mx_driver_13h</a>
</li>
<li><a href="degfx_font.htm#MX_FONT">MX_FONT</a>
A font  </li>
<li><a href="degfx_font.htm#void mx_font_default(MX_FONT* font)">void mx_font_default(MX_FONT* font)</a>
Set the default font  </li>
<li><a href="degfx_font.htm#void mx_font_bitmap_draw(const MX_FONT* font, struct MX_BITMAP* bitmap, const char* text, int len, int x, const int y, const MX_PIXEL fore)">void mx_font_bitmap_draw(const MX_FONT* font, struct MX_BITMAP* bitmap, const char* text, int len, int x, const int y, const MX_PIXEL fore)</a>
Draw text onto a bitmap  </li>
<li><a href="degfx_font.htm#void mx_font_bitmap_drawblock(const MX_FONT* font, struct MX_BITMAP* bitmap, const char* text, int len, int x, int y, const MX_PIXEL fore)">void mx_font_bitmap_drawblock(const MX_FONT* font, struct MX_BITMAP* bitmap, const char* text, int len, int x, int y, const MX_PIXEL fore)</a>
Draw a block of text onto a bitmap  </li>
<li><a href="degfx_font.htm#define mx_font_draw(f,t,l,x,y,fore)">#define mx_font_draw(f,t,l,x,y,fore)</a>
Draw text onto the screen  </li>
<li><a href="degfx_font.htm#define mx_font_drawblock(f,t,l,x,y,fore)">#define mx_font_drawblock(f,t,l,x,y,fore)</a>
Draw a block of text onto the screen  </li>
<li><a href="degfx_font.htm#unsigned int mx_font_height(const MX_FONT* font)">unsigned int mx_font_height(const MX_FONT* font)</a>
Return the height of a font  </li>
<li><a href="degfx_font.htm#unsigned int mx_font_width(const MX_FONT* font, const char* text, int len)">unsigned int mx_font_width(const MX_FONT* font, const char* text, int len)</a>
Return the width of a portion of text  </li>
<li><a href="degfx_font.htm#void mx_font_blocksize(const MX_FONT* font, const char* text, int len, int* tw, int* th, int* last)">void mx_font_blocksize(const MX_FONT* font, const char* text, int len, int* tw, int* th, int* last)</a>
Return the size of a block for a portion of text  </li>
<li><a href="degfx_font.htm#void mx_font_bitmap_drawblock(const MX_FONT* font, MX_BITMAP* bitmap, const char* text, int len, int x, int y, const MX_PIXEL fore)">void mx_font_bitmap_drawblock(const MX_FONT* font, MX_BITMAP* bitmap, const char* text, int len, int x, int y, const MX_PIXEL fore)</a>
Draw multi-line text onto a bitmap</li>
<li><a href="degfx_font.htm#void mx_font_bitmap_draw(const MX_FONT* font, MX_BITMAP* bitmap, const char* text, int len, int x, const int y, const MX_PIXEL fore)">void mx_font_bitmap_draw(const MX_FONT* font, MX_BITMAP* bitmap, const char* text, int len, int x, const int y, const MX_PIXEL fore)</a>
Draw text onto a bitmap</li>
<li><a href="degfx_font.htm#unsigned int mx_font_width(const MX_FONT* font, const char* text, int num)">unsigned int mx_font_width(const MX_FONT* font, const char* text, int num)</a>
The width in pixels of some text</li>
<li><a href="degfx_font.htm#MX_FONT* mx_font_bitmap(const MX_BITMAP* bitmap, int start)">MX_FONT* mx_font_bitmap(const MX_BITMAP* bitmap, int start)</a>
Load a font from a bitmap.  </li>
<li><a href="degfx_font.htm#MX_FONT* mx_font_pcx(const char* filename, int start)">MX_FONT* mx_font_pcx(const char* filename, int start)</a>
Load a font from a PCX file.  </li>
</ul><p>Generated by <a href="http://www.deleveld.dds.nl/mxdoc/index.htm">MXDOC</a> 2.2 on Sun Feb  4 15:16:27 2007


</body></html>
